<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
       <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<style type="text/css">
#mainboard {
	font:normal 76%/150% "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
	border-collapse:separate;
	border-spacing:0;
	margin:0 0 1em;
	color:#000;
	}
#mainboard a {
	color:#523A0B;
	text-decoration:none;
	border-bottom:1px dotted;
	}
#mainboard a:visited {
	color:#444;
	font-weight:normal;
	}
#mainboard a:visited:after {
	content:"\00A0\221A";
	}
#mainboard a:hover {
	border-bottom-style:solid;
	}
#mainboard thead th,
#mainboard thead td,
#mainboard tfoot th,
#mainboard tfoot td {
	border:1px solid #523A0B;
	border-width:1px 0;
	background:#EBE5D9;
	}
#mainboard th {
	font-weight:bold;
	line-height:normal;
	padding:0.25em 0.5em;
	text-align:left;
	}
#mainboard tbody th,
#mainboard td {
	padding:0.25em 0.5em;
	text-align:left;
	vertical-align:top;
	}
#mainboard tbody th {
	font-weight:normal;
	white-space:nowrap;
	}
#mainboard tbody th a:link,
#mainboard tbody th a:visited {
	font-weight:bold;
	}
#mainboard tbody td,
#mainboard tbody th {
	border:1px solid #fff;
	border-width:1px 0;
	}
#mainboard tbody tr.odd th,
#mainboard tbody tr.odd td {
	border-color:#EBE5D9;
	background:#F7F4EE;
	}
#mainboard tbody tr:hover td,
#mainboard tbody tr:hover th {
	background:#ffffee;
	border-color:#523A0B;
	}
#mainboard caption {
	font-family:Georgia,Times,serif;
	font-weight:normal;
	font-size:1.4em;
	text-align:left;
	margin:0;
	padding:0.5em 0.25em;
	}
</style>
<script type="text/javascript">
	function getContentView(){
		alert("로그인 하세요~!");
		}
</script>

<center>

<table>
<tr valign="top">
<td align="left">

<!-- 최신글 게시판 -->
<table>
         <tbody>
         <tr><td align="center">최신글</td></tr>
<c:forEach items="${requestScope.list}" var="list">
<tr>
	<td colspan="3">
		<table>
			<tr>
			<td style="font-size: 11px">
			<c:choose>
			<c:when test="${list.boardName=='freeboard'}">
				[자유게시판]
			</c:when>
			<c:when test="${list.boardName=='qnaboard'}">
				[Q&A게시판]
			</c:when>
			<c:when test="${list.boardName=='movieboard'}">
				[동영상게시판]
			</c:when>
			<c:when test="${list.boardName=='requestboard'}">
				[요청게시판]
			</c:when>
			<c:when test="${list.boardName=='reviewboard'}">
				[리뷰게시판]
			</c:when>
			<c:when test="${list.boardName=='newsboard'}">
				[소식 및 뉴스]
			</c:when>
			<c:when test="${list.boardName=='spcialboard'}">
				[스페셜메뉴]
			</c:when>
			<c:when test="${list.boardName=='noticeboard'}">
				[공지사항]
			</c:when>
			<c:when test="${list.boardName=='shareboard'}">
				[음원게시판]
			</c:when>
			<c:when test="${list.boardName=='imageboard'}">
				[사진게시판]
			</c:when>
			
		</c:choose>	
				</td>
				<c:if test="${sessionScope.vo!=null }">
				<td width="150"><a href="getContentView_board.do?no=${list.no }&boardNo=${list.boardKind}">${list.title}</a></td>
				</c:if>
				<c:if test="${sessionScope.vo==null }">
				<td width="150"><a href="javascript:getContentView()">${list.title}</a></td>
				</c:if>
				<td style="font-size: 10px">${list.viewCount}</td>
			</tr>
		</table>
	</td>
</tr>
</c:forEach>
</tbody>
</table>
</td>

<td align="center">
<table>
         <tbody>
         <tr><td align="center">베스트글</td></tr>
<c:forEach items="${requestScope.vlist}" var="vlist">
<tr>
	<td colspan="3">
		<table>
			<tr>
				<td style="font-size: 11px">
			<c:choose>
			<c:when test="${vlist.boardName=='freeboard'}">
				[자유게시판]
			</c:when>
			<c:when test="${vlist.boardName=='qnaboard'}">
				[Q&A게시판]
			</c:when>
			<c:when test="${vlist.boardName=='movieboard'}">
				[동영상게시판]
			</c:when>
			<c:when test="${vlist.boardName=='requestboard'}">
				[요청게시판]
			</c:when>
			<c:when test="${vlist.boardName=='reviewboard'}">
				[리뷰게시판]
			</c:when>
			<c:when test="${vlist.boardName=='newsboard'}">
				[소식 및 뉴스]
			</c:when>
			<c:when test="${vlist.boardName=='spcialboard'}">
				[스페셜메뉴]
			</c:when>
			<c:when test="${vlist.boardName=='noticeboard'}">
				[공지사항]
			</c:when>
			<c:when test="${vlist.boardName=='shareboard'}">
				[음원게시판]
			</c:when>
			<c:when test="${vlist.boardName=='imageboard'}">
				[사진게시판]
			</c:when>
		</c:choose>	
				</td>
				<c:if test="${sessionScope.vo!=null }">
				<td width="150"><a href="getContentView_board.do?no=${vlist.no }&boardNo=${vlist.boardKind}">${vlist.title}</a></td>
				</c:if>
				<c:if test="${sessionScope.vo==null }">
				<td width="150"><a href="javascript:getContentView()">${vlist.title}</a></td>
				</c:if>
				<td style="font-size: 10px">${vlist.viewCount}</td>
			</tr>
		</table>
	</td>
</tr>
</c:forEach>

<tr><td align="center">리뷰게시판</td></tr>
<c:forEach items="${requestScope.rlist}" var="rlist">
<tr>
	<td colspan="3">
		<table>
			<tr>
				<td style="font-size: 11px">
			<c:choose>
			<c:when test="${rlist.boardName=='freeboard'}">
				[자유게시판]
			</c:when>
			<c:when test="${rlist.boardName=='qnaboard'}">
				[Q&A게시판]
			</c:when>
			<c:when test="${rlist.boardName=='movieboard'}">
				[동영상게시판]
			</c:when>
			<c:when test="${rlist.boardName=='requestboard'}">
				[요청게시판]
			</c:when>
			<c:when test="${rlist.boardName=='reviewboard'}">
				[리뷰게시판]
			</c:when>
			<c:when test="${rlist.boardName=='newsboard'}">
				[소식 및 뉴스]
			</c:when>
			<c:when test="${rlist.boardName=='spcialboard'}">
				[스페셜메뉴]
			</c:when>
			<c:when test="${rlist.boardName=='noticeboard'}">
				[공지사항]
			</c:when>
			<c:when test="${rlist.boardName=='shareboard'}">
				[음원게시판]
			</c:when>
			<c:when test="${rlist.boardName=='imageboard'}">
				[사진게시판]
			</c:when>
		</c:choose>	
				</td>
				<c:if test="${sessionScope.vo!=null }">
				<td width="150"><a href="getContentView_board.do?no=${rlist.no }&boardNo=${rlist.boardKind}">${rlist.title}</a></td>
				</c:if>
				<c:if test="${sessionScope.vo==null }">
				<td width="150"><a href="javascript:getContentView()">${rlist.title}</a></td>
				</c:if>
				<td style="font-size: 10px">${rlist.viewCount}</td>
			</tr>
		</table>
	</td>
</tr>
</c:forEach>

</tbody>
</table>
</td>

 <td align="right">
<table>
         <tbody>
         <tr><td align="center">실시간다운로드</td></tr>

<c:forEach items="${requestScope.dlist}" var="dlist">
<tr>
	<td colspan="3">
		<table align="center">
			<tr>
				<td  width="10" style="font-size: 11px">${dlist.RANKING}</td>
				<c:if test="${sessionScope.vo!=null }">
				<td width="180"><a href="getContentView_board.do?no=${dlist.POSTNO }&boardNo=${dlist.BOARDNO}">${dlist.TITLE}</a></td>
				</c:if>
				<c:if test="${sessionScope.vo==null }">
				<td width="180"><a href="javascript:getContentView()">${dlist.TITLE}</a></td>
				</c:if>
				<td style="font-size: 11px">↑${dlist.CNT}</td>
			</tr>
		</table>
		
	</td>
</tr>
</c:forEach>

<tr>
<td><iframe width="250" height="250" src="//www.youtube.com/embed/EiVmQZwJhsA" frameborder="0" allowfullscreen></iframe></td>
</tr>
</tbody> 
</table>
</td>


</tr>
</table>

</center>